import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import numpy as np
df=pd.read_csv('tips.csv')
print(df.head())
#统计每个类别的个数
np.random.seed(666)
x=np.random.randn(1000)
#bins:区间个数
#kde:核密度估计曲线
#vertical:放置方向
sns.distplot(df['total_bill'],bins=10,kde=True,vertical=False,color='r')
plt.show()
